<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title></title>
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link rel="stylesheet" type="text/css" href="../../../css/mui.min.css" />
	<link rel="stylesheet" type="text/css" href="../../../css/pages/notice/details.css" />
</head>

<body>
	<div id="app" class="content">
		<header class="title font-c-41" v-text="noticeData.pnTitle"></header>
		<div class="m-t-15 font-14 font-c-41" v-text="noticeData.neiName"></div>
		<div class="m-t-10 font-14 font-c-7f">{{noticeData.pnCD | timeago}}</div>
		<div class="icon-list m-t-10 m-b-20">
			<img src="../../../images/home/notice/yuan.png" v-for="item in [1,2,3]">
		</div>

		<div class="content-body" v-html="noticeData.pnDetails">
			
		</div>

		<!-- <div class="btn-list m-t-15">
			<div class="item">
				<div class="icon">
					<img src="../../../images/home/notice/like@3x.png">
				</div>
				<div class="font-12 font-c-min">16</div>
			</div>
			<div class="item">
				<div class="icon">
					<img src="../../../images/home/notice/eye@3x.png">
				</div>
				<div class="font-12 font-c-min">288</div>
			</div>
		</div> -->
	</div>
	<script src="../../../js/Width.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/Util.js" type="text/javascript" charset="utf-8"></script>
	<script src="https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
	<script type="text/javascript">
		mui.init()
		mui.plusReady(function () {
			if (!mui.os.android) {
				FastClick.attach(document.body);
			}
			GetNoticeDetails()
		})

		function GetNoticeDetails() {
			
			var pnID = plus.webview.currentWebview().pnID;
			console.log(pnID)
			mui.post(Util.HTTP + 'api/Home/GetNoticeDetails', {
				pnID: pnID
			}, function (res) {
				if (res.code == 1001) {
					app.noticeData = res.data
				} else {
					mui.toast(res.message)
				}
			})
		}

		var app = new Vue({
			el: '#app',
			data: {
				noticeData: {}
			},
			filters: {
				timeago: function (value) {
					return Util.timeago(value)
				}
			},
		})
	</script>
</body>

</html>
